import request from '@/utils/request'

// 查询DAG性能评测列表
export function listPerformance(query) {
  return request({
    url: '/system/performance/list',
    method: 'get',
    params: query
  })
}

// 查询DAG性能评测详细
export function getPerformance(uuid) {
  return request({
    url: '/system/performance/' + uuid,
    method: 'get'
  })
}

// 新增DAG性能评测
export function addPerformance(data) {
  return request({
    url: '/system/performance',
    method: 'post',
    data: data
  })
}

// 修改DAG性能评测
export function updatePerformance(data) {
  return request({
    url: '/system/performance',
    method: 'put',
    data: data
  })
}

// 删除DAG性能评测
export function delPerformance(uuid) {
  return request({
    url: '/system/performance/' + uuid,
    method: 'delete'
  })
}
